#include <iostream>
#include <memory> //跟智能指针有关的头文件
using namespace std;


/*
	返回值 operator=(形参) = delete;  //禁止使用赋值运算
*/

class Cat
{
public:
	Cat(int _age=0)
	{
		age=_age;
	}
	void operator=(Cat &other)=delete;  //禁用赋值
	Cat(const Cat &other)=delete;       //禁用拷贝构造函数
	
private:
	int age;
};

int main()
{
	Cat c1(5);
	Cat c2;
	//c2=c1; //默认类对象可以赋值，现在不希望类对象之间赋值
	
	Cat c3=c1;
}